You should be able to walk into most any "Doctor's WalkIn" style clinic, let them check your vitals and take a short history and then receive a script for Ambien.
Simply tell them your job hours make it difficult to sleep consistently (honest) and there's no reason for them to obstruct you. It's not a Schedule 2 narcotic